package com.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reggie.dto.OrdersDto;
import com.reggie.entity.Orders;

import java.time.LocalDateTime;

public interface OrderService extends IService<Orders> {
    void submitOrder(Orders orders);

    Page<OrdersDto> userPage(Integer page, Integer pageSize);

    Page<OrdersDto> pageOrdersDto(Integer page, Integer pageSize, Long number, LocalDateTime beginTime, LocalDateTime endTime);

    void againOrder(Long id);
}
